package cn.tqfeiyang.smartadmin.commons.application;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * SmartAdmin配置对象
 *
 * @author tqfeiyang
 * @since 2024/8/24 9:30
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "smart-admin")
public class SmartAdminConfig {

    /**
     * md5盐值，默认为空
     */
    private String md5Salt = "";

    /**
     * 缓存容量，默认是 10
     */
    private int cacheCapacity = 10;

    /**
     * 缓存过期时长，单位：毫秒，默认是 0 表示不过期
     */
    private long cacheTimeout = 0;

    /**
     * 导出excel水印文字
     */
    private String watermarkText = "天青飞扬";

}
